//
//  GKZYBatchScoreView.m
//  GKZYAid
//
//  Created by tony on 16/3/1.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYBatchScoreView.h"
#import "MyDefine.h"

@interface GKZYBatchScoreView ()

@property(nonatomic,strong)UILabel *label1;
@property(nonatomic,strong)UILabel *label2;
@property(nonatomic,strong)UILabel *label3;
@property(nonatomic,strong)UILabel *label4;

@end


@implementation GKZYBatchScoreView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}

-(void)configureTheVeiwWithYear:(NSString *)year andFirst:(NSString *)first Second:(NSString *)second Third:(NSString *)third andTextColor:(UIColor *)textColor{

    _label1 = [[UILabel alloc]initWithFrame:CGRectMake(VIEWWIDTH *0.05, 0, VIEWWIDTH*0.35 , VIEWHEIGHT)];
    
    _label1.font = [UIFont systemFontOfSize:14];
    _label1.textAlignment = NSTextAlignmentLeft;
    _label1.text = year;
    _label1.textColor = textColor;
    [self addSubview:_label1];
    
   _label2 = [[UILabel alloc]initWithFrame:CGRectMake(VIEWWIDTH *0.4, 0, VIEWWIDTH *0.2, VIEWHEIGHT)];
    _label2.font = [UIFont systemFontOfSize:14];
    _label2.textAlignment = NSTextAlignmentCenter ;
    _label2.text = first;
    _label2.textColor = textColor;
    [self addSubview:_label2];
    
    _label3 = [[UILabel alloc]initWithFrame:CGRectMake(VIEWWIDTH *0.6, 0, VIEWWIDTH *0.2, VIEWHEIGHT)];
     _label3.font = [UIFont systemFontOfSize:14];
    _label3.textAlignment = NSTextAlignmentCenter ;
    _label3.text = second;
    _label3.textColor = textColor;
    [self addSubview:_label3];
    
    _label4 = [[UILabel alloc]initWithFrame:CGRectMake(VIEWWIDTH *0.8, 0, VIEWWIDTH *0.2, VIEWHEIGHT)];
     _label4.font = [UIFont systemFontOfSize:14];
    _label4.textAlignment = NSTextAlignmentCenter ;
    _label4.textColor = textColor;
    _label4.text = third;
    [self addSubview:_label4];
    
}


@end
